<template>
  <div>
    <div>
      <div v-for="c in components" :key="c.__config__.tag">
        {{ c.__config__.tag }}
      </div>
    </div>
  </div>
</template>
<script>
const allComponents = require.context('./components', true , /\.js/)

export default {
  data() {
    console.log('allComponents', allComponents.keys())
    return {
      components : allComponents.keys().filter(key => key.endsWith('/config.js')).map(key => {
        console.log(allComponents(key))
        return allComponents(key)
      }),
    }
  },
}
</script>